import java.io.IOException;
import java.util.Properties;

public class Test {
    public static void main(String[] args) {
        Properties properties=System.getProperties();
        System.out.println(properties);

        // 创建一个Runtime实例对象
        Runtime rt = Runtime.getRuntime();
        Process process =null;

        // 得到表示进程的Process对象
        try{
            process = rt.exec("notepad.exe");
        }catch(IOException e ){
            e.printStackTrace();
        }

        // 程序休眠3秒
        try{
            Thread.sleep(3000);
        }catch(InterruptedException e ){
            e.printStackTrace();
        }

        // 杀掉进程
        process.destroy();
    }

}
